<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">注册协议</a></li>
        <li class=""><a href="#B" data-toggle="tab">隐私政策</a></li>
        <li class=""><a href="#C" data-toggle="tab">关于我们</a></li>
        <li class=""><a href="#D" data-toggle="tab">用户条款</a></li>
        <li class=""><a href="#E" data-toggle="tab">量化中文</a></li>
        <li class=""><a href="#F" data-toggle="tab">量化英文</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('text/index')}"
          method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[zcxy][title]" value="{$text_info.zcxy.title|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[zcxy][content]" style="height:400px;">{$text_info.zcxy.content|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[zcxy][title_en]" value="{$text_info.zcxy.title_en|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[zcxy][content_en]" style="height:400px;">{$text_info.zcxy.content_en|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="B">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[yszc][title]" value="{$text_info.yszc.title|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[yszc][content]" style="height:400px;">{$text_info.yszc.content|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[yszc][title_en]" value="{$text_info.yszc.title_en|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[yszc][content_en]" style="height:400px;">{$text_info.yszc.content_en|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="C">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[gywm][title]" value="{$text_info.gywm.title|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[gywm][content]" style="height:400px;">{$text_info.gywm.content|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[gywm][title_en]" value="{$text_info.gywm.title_en|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[gywm][content_en]" style="height:400px;">{$text_info.gywm.content_en|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="D">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[yhtk][title]" value="{$text_info.yhtk.title|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>中文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[yhtk][content]" style="height:400px;">{$text_info.yhtk.content|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                                <th>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文标题</label>
                                        <div class="col-md-10 col-sm-10">
                                            <input class="form-control" name="text_info[yhtk][title_en]" value="{$text_info.yhtk.title_en|default=''}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>英文内容</label>
                                        <div class="col-md-10 col-sm-10">
                                            <textarea class="form-control" name="text_info[yhtk][content_en]" style="height:400px;">{$text_info.yhtk.content_en|default=''}</textarea>
                                        </div>
                                    </div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="E">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>内容</label>
                            <div class="col-md-6 col-sm-10">
                                <script type="text/plain" id="content_cn" name="text_info[language][cn]" style="height:500px;">
                                    <if isset($text_info['language']['cn'])>
                                    {:cmf_replace_content_file_url(htmlspecialchars_decode($text_info.language.cn))}
                                    </if>
                                </script>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="F">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>内容</label>
                            <div class="col-md-6 col-sm-10">
                                <script type="text/plain" id="content_en" name="text_info[language][en]" style="height:500px;">
                                    <if isset($text_info['language']['en'])>
                                        {:cmf_replace_content_file_url(htmlspecialchars_decode($text_info.language.en))}
                                    </if>
                                </script>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    $(function () {

        editorcontent = new baidu.editor.ui.Editor();
        editorcontent.render('content_cn');
        try {
            editorcontent.sync();
        } catch (err) {
        }

        editorcontent1 = new baidu.editor.ui.Editor();
        editorcontent1.render('content_en');
        try {
            editorcontent1.sync();
        } catch (err) {
        }

    });
</script>
</body>
</html>
